<?php
/**
 * IndexController.php
 * 系统主页面
 * @author Life <349865361@qq.com>
 * @version 20140110
 */
class IndexController extends AdminController
{
    /**
     * 主框架页面
     */
    public function index()
    {
        $toolList = hook_api('apiAdminTools');
        $toolHtml = '';
        if(!empty($toolList)){
            foreach ($toolList as $value) {
                $toolHtml.=$value;
            }
        }
        $this->assign('siteInfo', api('duxcms','getSiteInfo',OLDSITEID));
        $this->assign('siteList', api('duxcms','getSiteList'));
        $this->assign('userInfo', $this->userInfo);
        $this->assign('adminInfo', config('ADMIN'));
        $this->assign('toolHtml', $toolHtml);
        $this->display();
    }
    /**
     * 欢迎页面
     */
    public function home()
    {
        $this->assign('verInfo', config('COPYRIGHT'));
        $this->show();
    }
}